package handler

import (
	"2302a/tiktok_business/api/resp"
	"fmt"
	"github.com/gin-gonic/gin"
)

func FileUpload(c *gin.Context) {
	file, _ := c.FormFile("file")

	dst := "D:\\phpstudy_pro\\WWW\\" + file.Filename
	c.SaveUploadedFile(file, dst)
	resp.Success(c, "上传成功", fmt.Sprintf("http://localhost:/%s", file.Filename))
}
